home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / driver / predefined < prev    next >
Text File  |  2001-06-28  |  3KB  |  73 lines

  1. NAME
  2.     predefined - predefined #defines by the parser
  3.  
  4. DESCRIPTION
  5.     Several preprocessor macros are pre#defined by the parser,
  6.     to provide information about parser version, compile time
  7.     options and parser invocation options:
  8.  
  9.       LPC3            : always defined.
  10.       __LDMUD__       : always defined.
  11.       __EUIDS__       : always (for compatibility).
  12.       COMPAT_FLAG     : defined if the driver runs in compat mode.
  13.       __COMPAT_MODE__ : ditto
  14.       __STRICT_EUIDS__: defined if strict euid usage is enforced.
  15.  
  16.       __MASTER_OBJECT__ : the name of the master object (in compat mode
  17.                           without leading '/').
  18.       __FILE__          : the name of the compiled file (in compat mode
  19.                           without leading '/').
  20.       __LINE__          : the actual line number.
  21.       __DIR__           : the directory path of the compiled file (in
  22.                           compat mode without leading '/').
  23.       __PATH__(n)       : the <n> leading directory path elements of the
  24.                           compiled file (in compat mode without leading '/').
  25.       __VERSION__       : the version string of the driver.
  26.       __VERSION_MAJOR__ : the major version number of the driver.
  27.       __VERSION_MINOR__ : the minor version number of the driver.
  28.       __VERSION_MICRO__ : the micro version number of the driver.
  29.       __VERSION_PATCH__ : the patchlevel of the driver; a 0 here means
  30.                           'no patchlevel'.
  31.  
  32.       __DOMAIN_NAME__    : the domain the host is part of.
  33.       __HOST_IP_NUMBER__ : the hosts IP number (as a string).
  34.       __HOST_NAME__      : the full hostname.
  35.       __MAX_RECURSION__  : the max count of nested function calls
  36.                            (this is config.h:MAX_USER_TRACE).
  37.       __MAX_EVAL_COST__  : the max evaluation cost.
  38.       __EFUN_DEFINED__(name) : if the efun 'name' exists, this
  39.                                macro evaluates to " 1 ", else to " 0 ".
  40.       __WIZLIST__        : the name of the (mudlib) file from where the
  41.                            driver read the initial WIZLIST information.
  42.                            It is undefined if the driver was configured
  43.                            to not read the information.
  44.  
  45.     If the ERQ is supported, the following macros are defined:
  46.  
  47.       __ERQ_MAX_SEND__  : the max size of the send buffer
  48.       __ERQ_MAX_REPLY__ : the max size of the reply buffer
  49.  
  50.     The following macros are defined if their associated package
  51.     has been compiled into the driver:
  52.       
  53.       __IPV6__ :      support for IP v 6
  54.       __MYSQL__ :     support for mySQL
  55.       __LPC_NOSAVE__: support for the 'nosave' keyword
  56.       __DEPRECATED__: support for obsolete and deprecated efuns.
  57.  
  58.  
  59. HISTORY
  60.     3.2.1 added __DOMAIN_NAME__, __HOST_IP_NUMBER__, __HOST_NAME__,
  61.         __MAX_RECURSION__, __EFUN_DEFINED__().
  62.     3.2.5 added __COMPAT_MODE__, __NATIVE_MODE__, __EUIDS__,
  63.         __ERQ_MAX_SEND__ and __ERQ_MAX_REPLY__.
  64.     3.2.6 added __MAX_EVAL_COST__.
  65.     3.2.7 added __STRICT_EUIDS__ and made __EUIDS__ standard.
  66.     3.2.8 added __IPV6__, __LPC_NOSAVE__, __DIR__, __PATH__().
  67.     3.2.9 added __LDMUD__, __MYSQL__, __DEPRECATED__, __VERSION_MAJOR__,
  68.         __VERSION_MINOR__, __VERSION_MICRO__, __VERSION_PATCH__
  69.         and __WIZLIST__.
  70.  
  71. SEE ALSO
  72.     pragma(LPC), preprocessor(LPC)
  73.